package com.ficus.road.maintain.authority.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * @author xiawen yang
 * @date 2021/8/19 下午8:34
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserDTO implements Serializable {

    private static final long serialVersionUID = -6832178141570877356L;

    private String id;

    private String account;

    private String username;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    private List<String> carIdList;

    private Set<String> roleIdList;

    private Long createTime;

    private Long updateTime;
    /**
     * 密码输入错误次数
     */
    private int errorsNumber;
    /**
     * 密码修改时间
     */
    private Long passWordUpdateTime;
    /**
     * 账户锁定时间
     */
    private Long lockTime;
    //是否可用，用户被删除时enable为false且目前不可恢复
    private Boolean enable;
}
